﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="He.Web.manage.ad.edit" %>

<%@ Register Src="../_uc/head_edit.ascx" TagPrefix="uc" TagName="head_edit" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>编辑广告图片</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_edit runat="server" ID="uchead_edit" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="back"><a href='list.aspx?position_id=<%=position_id %>'>返回列表</a></span><b>您当前的位置：首页
            &gt; 广告管理 &gt;编辑广告图片</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                编辑广告图片
            </th>
        </tr>
        <tr>
            <td width="15%" align="right">
                图片名称：
            </td>
            <td width="85%">
                <asp:TextBox ID="txtTitle" runat="server" CssClass="input w380 required" MaxLength="250"
                    minlength="1" HintTitle="发布的广告图片标题" HintInfo="控制在100个字数内，标题文本尽量不要太长。"></asp:TextBox>
            </td>
        </tr>
        <tr id="trReview" <%=ShowReview(imgurl) %>>
            <td align="right">
                图片预览：
            </td>
            <td>
                <img id="imgReview" src="<%=imgurl %>" class="myReview" alt="图片预览" />
            </td>
        </tr>
        <tr>
            <td align="right">
                图片：
            </td>
            <td>
                <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w380 left"></asp:TextBox>
                <a href="javascript:void(0);" class="files">
                    <input type="file" id="FileUpload" name="FileUpload" onchange="SingleUpload('txtImgUrl','FileUpload',true)" /></a>
                <span class="uploading">正在上传，请稍候...</span>&nbsp;推荐尺寸：<%=ad_position.ad_width %>
                *
                <%=ad_position.ad_height %>
            </td>
        </tr>
        <tr>
            <td align="right">
                链接地址：
            </td>
            <td>
                <asp:TextBox ID="txtLinkUrl" runat="server" CssClass="input w380" MaxLength="250"
                    HintTitle="该图片的链接地址" HintInfo="请填写该图片的链接地址，小于250个字符。">#</asp:TextBox>
                例如：/list.aspx，若无请填写#
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td>
                <asp:CheckBox ID="chkRed" Text="推荐" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                排序：
            </td>
            <td>
                <asp:TextBox ID="txtSortId" Text="1" CssClass="input required number" size="10" runat="server"
                    MaxLength="9" HintTitle="图片排序" HintInfo="纯数字，数字越少越向前。"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确 认 保 存" CssClass="submit" OnClick="btnSave_Click" />
    </div>
    </form>
</body>
</html>
